package pictureseditor.effects.effectsimpl;

import pictureseditor.effects.EffectEnum;
import pictureseditor.effects.EffectSequential;
import pictureseditor.effects.filters.FilterEnum;
import pictureseditor.exceptions.NullImageException;
import pictureseditor.images.Image;

/**
 * Cet effet booste le contrast de l'image.
 */
public class EffectContrastBooster extends EffectSequential {
	
	  /////////////////
	 // CONSTRUCTOR //
	/////////////////
	
	public EffectContrastBooster(Image img) {
		super(img);
	}
	
	  ////////////
	 // PUBLIC //
	////////////
	
	/** Applique l'effect "contrast booster" */
	public Image apply() throws NullImageException {
		super.addEffect(EffectEnum.REVERSECOLOR);
		super.addEffect(FilterEnum.SHINE);
		super.addEffect(EffectEnum.REVERSECOLOR);
		return super.apply();
	}

}
